package controllers

import (
	"beego/redis"
	"github.com/astaxie/beego"
)

type GetMessageController struct {
	beego.Controller
}

func (c *GetMessageController) Get() {
	redis.Init()
	list := redis.LRANGE("xia", 0, 5)
	c.Data["json"] = list
	c.ServeJSON()
}
